package com.ruoyi.dish.service;

import com.ruoyi.dish.domain.DishOrder;
import com.ruoyi.dish.mapper.DishOrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DishOrderService {
    @Autowired
    private DishOrderMapper dishOrderMapper;
    public void insertOrder(DishOrder order) {
        dishOrderMapper.insertOrder(order);
    }
    //显示订单
    public List<DishOrder> selectOrderList() {
        return dishOrderMapper.selectOrderList();
    }
}
